Eclipse Platform
Pre-release 3.0

org.eclipse.ui.texteditor
Class AnnotationPreferenceLookup

java.lang.Object
  extended byorg.eclipse.ui.texteditor.AnnotationPreferenceLookup

public class AnnotationPreferenceLookup
extends Object

Provides the strategy for finding the annotation preference for a given annotation.

Since:
3.0

Constructor Summary
AnnotationPreferenceLookup()
          Creates a new annotation preference lookup object.
 
Method Summary
 AnnotationPreference getAnnotationPreference(Annotation annotation)
          Returns the annotation preference of a given annotation.
 AnnotationPreference getAnnotationPreferenceFragment(String annotationType)
          Returns the annotation preference fragment defined for the given annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationPreferenceLookup

public AnnotationPreferenceLookup()
Creates a new annotation preference lookup object.

Method Detail

getAnnotationPreference

public AnnotationPreference getAnnotationPreference(Annotation annotation)
Returns the annotation preference of a given annotation.

Parameters:
annotation - the annotation
Returns:
the annotation preference for the given annotation or null

getAnnotationPreferenceFragment

public AnnotationPreference getAnnotationPreferenceFragment(String annotationType)
Returns the annotation preference fragment defined for the given annotation type.

Parameters:
annotationType - the annotation type
Returns:
the defined annotation preference fragment

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.